<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateClientTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('client', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->nullable();//用户ID
            $table->integer('shop_id')->nullable();//店铺ID
            $table->string('symbol',16)->default('default'); //客户标识
            $table->string('status',16)->default('default'); //跟进状态
            $table->integer('sale_id');//业务员ID
            $table->integer('visit');//访问次数
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('client');
    }
}
